import * as React from 'react';
import PropTypes from 'prop-types';
import { BaseComponent } from 'kryfe-lib';
import { connect } from 'react-redux';
import * as actions from '../actions';

export class {{Module}} extends BaseComponent {
  constructor(props, context) {
    super(props, context);
    
    this.state = {};
    
    this.bind('');
  }
  
  render() {
    return (
      <div />
    );
  }
}

{{Module}}.propTypes = {
  {{module}}: PropTypes.object.isRequired
};

const mapStateToProps = state => ({
  system: {
    loading: state.systemLoading,
    error: state.systemError
  },
  {{module}}: state.{{module}}
});

const mapDispatchToProps = {
  method: actions.method
};

export default connect(mapStateToProps, mapDispatchToProps)({{Module}});
